Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new MapType logical type #762

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

stloyd
Copy link
Member

@stloyd stloyd commented Nov 7, 2023

Change Log

Added

  • Implement new `MapType` logical type

Fixed

Changed

Removed

Deprecated

Security


Description

@stloyd stloyd marked this pull request as ready for review November 7, 2023 17:17
Copy link
Contributor

github-actions bot commented Nov 7, 2023

Flow PHP - Benchmarks

Results of the benchmarks from this PR are compared with the results from 1.x branch.

Extractors
+-----------------------+-------------------+------+-----+------------------+------------------+-----------------+
| benchmark             | subject           | revs | its | mem_peak         | mode             | rstdev          |
+-----------------------+-------------------+------+-----+------------------+------------------+-----------------+
| AvroExtractorBench    | bench_extract_10k | 1    | 3   | 35.272mb +0.00%  | 370.635ms +0.51% | ±1.09% -24.22%  |
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.836mb +0.03%   | 271.731ms +0.88% | ±0.08% -62.40%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.991mb +0.04%   | 589.325ms +1.86% | ±0.97% +272.78% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 233.580mb +0.00% | 799.444ms +1.79% | ±0.41% +74.81%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.830mb +0.03%   | 19.266ms -3.79%  | ±0.76% +57.84%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.830mb +0.03%   | 402.416ms +0.32% | ±0.35% -74.73%  |
+-----------------------+-------------------+------+-----+------------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+-----------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak        | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+-----------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 87.093mb +0.00% | 48.557ms -0.70% | ±1.03% +39.85% |
+-----------------------------+--------------------------+------+-----+-----------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| AvroLoaderBench    | bench_load_10k | 1    | 3   | 94.464mb +0.00%  | 577.461ms -0.18% | ±1.04% +5.41%   |
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 46.109mb +0.00%  | 70.157ms +3.05%  | ±0.47% -61.85%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 89.742mb +0.00%  | 63.442ms +2.43%  | ±0.61% -21.57%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 285.213mb +0.00% | 1.301s +0.29%    | ±0.75% +123.36% |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 16.603mb +0.01%  | 40.910ms +1.13%  | ±0.47% -4.80%   |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+-----------------+------------------+------------------+
| benchmark               | subject                    | revs | its | mem_peak        | mode             | rstdev           |
+-------------------------+----------------------------+------+-----+-----------------+------------------+------------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 60.702mb +0.00% | 2.215ms -7.27%   | ±2.37% +10.59%   |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 80.494mb +0.00% | 155.282ms +0.15% | ±0.80% -68.55%   |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 59.020mb +0.00% | 15.317ms +1.07%  | ±0.40% -88.54%   |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 59.841mb +0.00% | 1.789ms -9.51%   | ±1.42% -51.94%   |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 59.841mb +0.00% | 1.810ms -7.25%   | ±1.73% -56.56%   |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 59.054mb +0.00% | 2.792ms -1.98%   | ±2.79% +20.49%   |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 59.583mb +0.00% | 14.109ms -2.50%  | ±0.40% -8.72%    |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 59.583mb +0.00% | 14.319ms -2.02%  | ±1.25% +102.37%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 57.654mb +0.00% | 1.894μs +5.22%   | ±2.53% +0.00%    |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 57.654mb +0.00% | 0.400μs +33.33%  | ±0.00% +0.00%    |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 65.887mb +0.00% | 10.491ms -0.41%  | ±0.41% +6.93%    |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 91.407mb +0.00% | 46.918ms -1.84%  | ±1.37% +39.06%   |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 60.104mb +0.00% | 1.963ms -6.63%   | ±0.32% -85.35%   |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 62.374mb +0.00% | 32.493ms -3.06%  | ±0.50% -57.46%   |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 62.204mb +0.00% | 4.835ms -2.16%   | ±1.84% +68.40%   |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 57.654mb +0.00% | 37.431ms -1.16%  | ±0.32% -81.18%   |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 57.654mb +0.00% | 37.548ms -0.07%  | ±1.40% +92.99%   |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 57.654mb +0.00% | 37.053ms -2.12%  | ±2.19% +45.51%   |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 59.928mb +0.00% | 7.276ms -0.37%   | ±1.19% +2.22%    |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 57.653mb +0.00% | 28.660ms -0.52%  | ±0.49% -37.17%   |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 57.654mb +0.00% | 12.812μs -1.35%  | ±0.73% +0.52%    |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 57.654mb +0.00% | 15.512μs +0.53%  | ±0.61% -60.00%   |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 80.495mb +0.00% | 160.504ms +1.90% | ±0.69% -11.96%   |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 92.904mb -0.00% | 125.377ms +2.91% | ±2.41% +1599.43% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 48.208mb +0.02% | 60.747ms -2.04%  | ±1.22% +243.22%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 12.558mb -0.03% | 14.479ms +1.13%  | ±1.94% +349.07%  |
+-------------------------+----------------------------+------+-----+-----------------+------------------+------------------+

@stloyd stloyd merged commit be00e6c into flow-php:1.x Nov 7, 2023
14 checks passed
@stloyd stloyd deleted the feature/map-type branch November 7, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants